﻿using ASmile.Com.MenuRole;
using ASmile.DBModel;

namespace ASmile.Com
{
    public interface IMenuRoleBLL
    {
        ApiResult<string> AddRoleMenu(Sys_RoleMenu model);
        ApiResult DelRoleMenu(Sys_RoleMenu model);
        ApiResult<string> EditRoleMenu(Sys_RoleMenu model);
        //ApiResultList<Sys_Role_Menu> GetMenuByRole();
        ApiResultList<Sys_Menu> GetMenuTree();
        ApiResultList<Sys_RoleMenu> GetRoleMenus(ArgGetRoleMenus arg);
        ApiResult<string> RoleAdd(Sys_Role model);
        ApiResult RoleDel(Sys_Role model);
        ApiResult<string> RoleEdit(Sys_Role model);
        ApiResultList<Sys_Role> RoleGetData();
        ApiResult SetOrderNo(string id, int orderNo);
        ApiResult SetParent(string srcId, string tarPId, int orderNo);
        ApiResult SetRoleMenuOrder(string id, int orderNo);
        ApiResult SetRoleToolMenuOrder(string id, int orderNo);
        ApiResult SwapOrderNo(ArgSwapOrderNo arg);
        ApiResult<string> TreeAdd(Sys_RoleMenu m);
        ApiResult TreeChangeParentId(Sys_RoleMenu m);
        ApiResult TreeDel(Sys_RoleMenu menu);
        ApiResult<string> TreeEdit(Sys_RoleMenu m);
        ApiResultList<Sys_RoleMenu> TreeGetData(string roleId);
    }
}